package com.springboot.mongodb.controller;

import com.springboot.mongodb.impl.LabelServiceImpl;
import com.springboot.mongodb.model.AddLabelDTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * @ClassName springboot_mongodb - LabelController
 * @Description [此类用于: ]
 * @Author liming-jybdd@foxmail.com
 * @Date 2021/9/2617:40
 * @Version 1.0
 **/
@RestController
@RequestMapping("/Label")
public class LabelController {

    @Autowired
    private LabelServiceImpl labelService;

    @RequestMapping(value = "/save", method = RequestMethod.POST)
    public void saveLabel(@RequestBody AddLabelDTO addLabelDTO){
        labelService.saveLabel(addLabelDTO);
    }
}